package com.example.daxiguaforharmony;

import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class ResultsAbility extends Ability {
//    private static final String PERMISSION_DATASYNC = "ohos.permission.DISTRIBUTED_DATASYNC";
//    private static final int MY_PERMISSION_REQUEST_CODE = 1;

    @Override
    protected void onStart(Intent intent) {
        //audio = new Audio(getContext());

//        if (verifySelfPermission(PERMISSION_DATASYNC) != IBundleManager.PERMISSION_GRANTED) {
//            if (canRequestPermission(PERMISSION_DATASYNC)) {
//                requestPermissionsFromUser(new String[] {PERMISSION_DATASYNC}, MY_PERMISSION_REQUEST_CODE);
//            }
//        }
    }

    @Override
    protected void onActive() {

        Intent resIntent=new Intent();
        resIntent.setParam("score",52525);
        setResult(100,resIntent);

        super.onActive();

    }

    @Override
    protected void onStop() {
        super.onStop();
    }


}
